﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace LightWeb.TransferModel
{
    [DataContract]
    public class TmArcitalSummary
    {
        [DataMember]
        public int ArticalId { get; set; }
        [DataMember]
        public string Title { get; set; }
        [DataMember]
        public string Summary { get; set; }
        [DataMember]
        public string PostDate { get; set; }
    }
    [DataContract]
    public class TmArticalInfo
    {

    }
    [DataContract]
    public class TmArticalComment
    {
        [DataMember]
        public int ArticalId { get; set; }
        [DataMember]
        public string Name { get; set; }
        [DataMember]
        public string Email { get; set; }
        [DataMember]
        public string Site { get; set; }
        [DataMember]
        public string Date { get; set; }
        [DataMember]
        public string Content { get; set; }
    }

    [DataContract]
    public class TmTagInfo
    {
        [DataMember]
        public int TagId { get; set; }

        [DataMember]
        public string Name { get; set; }
    }

    [DataContract]
    public class TmResult
    {
        public TmResult(bool success = true)
        {
            this.Success = success;
        }
        public TmResult(string errorMessage, bool success = false)
        {
            this.Success = success;
            this.ErrorMessage = errorMessage;
        }

        [DataMember]
        public bool Success { get; set; }

        [DataMember]
        public string ErrorMessage { get; set; }
    }
}
